import xlrd
def getExcelData(xlsName,sheetName):
    myxls = xlrd.open_workbook(xlsName)
    mysheet = myxls.sheet_by_name(sheetName)

    rows = mysheet.nrows
    data = []
    for i in range(rows):
        tmpList = []
        tmp1 = mysheet.cell_value(i, 0)
        tmpList.append(tmp1)
        tmp2 = mysheet.cell_value(i, 1)
        tmpList.append(tmp2)
        data.append(tmpList)

    return data